package com.prpat;

import java.io.Serializable;

public class Range  implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	int level;
	long start;
	long end;
	
	public Range(int level, long start, long end) 
	{
		this.level = level;
		this.start = start;
		this.end = end;
	}
	
	public boolean equals(Object obj){
		boolean ans = false;
		Range other = (Range)obj;
		ans = (other.level==this.level) && (other.start==this.start) && (other.end==this.end);
		return ans;
	}
	
	public String toString()
	{
		return "level = "+level+" start "+start+" end = "+end;
		
	}
}
